
export function validateEmail(value) {
    const pattern = /^([a-zA-Z]|[0-9])(\w|\-)+@[a-zA-Z0-9]+\.([a-zA-Z]{2,4})$/;
    return pattern.test(value);
}

export function validatePassword(value) {
    const pattern = /^(?!\D+$)(?![^a-zA-Z]+$)\S{6,20}$/
    return pattern.test(value);
}

export function validatePhone(value) {
    const pattern = /^1[34578]\d{9}$/;
    return pattern.test(value);
}

